#{extends 'main.html' /}

#{set title:'All Organizations' /}

Here all the Organizations in the System !
</br>
</br>

<ul>
		#{list items:orgs, as:'Organization'}
		<li><a href="@{Organizations.viewAllOrganizations()}">  ${Organization.name}</a></li>
		<form action = "@{Organizations.show()}" method = "GET">
<input type="hidden" name="orgId" value=${Organization.id}>
<input type = "submit" value = "Visit This Organization"></form> 
<form action = "@{Users.inviteRegUser()}" method = "POST">
<input type="hidden" name="orgId" value=${Organization.id}>
<input type = "submit" value = "Invite User to This Organization!!">
</form>
		#{/list}
</ul>

</br>
</br>
</br>
<a href="@{Organizations.organizationHome()}"> Back to Organization</a>
<a href="@{Application.index()}">Home Page</a>